(function(){
	const input = document.getElementById("upload");
	console.log(`got input obj: ${input}`);
	input.addEventListener("change", function(e){
		console.log("input on change: " + input.files);
		if(input.files.length > 0){
			Array.prototype.forEach.call(input.files, file => {
				console.log("input files: " + file.name);
			});
		}
	});
})();
